Learn R Programming

imager (version 0.14)

[.cimg: Array subset operator for cimg objects

Description

Works mostly just like the regular array version of x[...], the only difference being that it returns cimg objects when it makes sense to do so. For example im[,,,1] is just like as.array(im)[,,,1] except it returns a cimg object (containing only the first colour channel)

Usage

## S3 method for class 'cimg':
[(x, ...)

Arguments

x
an image (cimg object)
...
subsetting arguments

See Also

imsub, which provides a more convenient interface, crop